package com.base.service

import io.swagger.annotations.Api
import io.swagger.annotations.ApiImplicitParam
import io.swagger.annotations.ApiImplicitParams
import io.swagger.annotations.ApiOperation
import org.springframework.web.bind.annotation.RequestParam

@Api("service1_dubbo")
interface IRPC_Service1_Dubbo {
    @ApiOperation("callService2")
    @ApiImplicitParams()
    fun callService2(): String

    @ApiOperation("do_seata")
    @ApiImplicitParams(
        ApiImplicitParam(name = "doException", value = "是否触发异常", required = false, dataType = "String")
    )
    fun do_seata(@RequestParam doException: String): String
}
